package com.vichat.res.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-10-07 10:40:50.276
 */
@Entity
@Table(name = "sys_host",catalog = "cfgdb")
public class SysHost implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "sys_host";

    /** */
	public static final String ALIAS_HOST_ID = "host_id";
    /** */
	public static final String ALIAS_HOST_NAME = "host_name";
    /** */
	public static final String ALIAS_INT_IP = "int_ip";
    /** */
	public static final String ALIAS_EXT_IP = "ext_ip";
    /** */
	public static final String ALIAS_CPU = "cpu";
    /** */
	public static final String ALIAS_MEM = "mem";
    /** */
	public static final String ALIAS_DESCRIPTION = "description";
    /** */
	public static final String ALIAS_IDC_ID = "idc_id";
    /** */
	public static final String ALIAS_OP_TIME = "op_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "host_id", unique = true, nullable = false)
    public java.lang.Long hostId = 0l;
  
 	@Column(name = "host_name")
    public java.lang.String hostName;
  
 	@Column(name = "int_ip")
    public java.lang.String intIp;
  
 	@Column(name = "ext_ip")
    public java.lang.String extIp;
  
 	@Column(name = "cpu")
    public java.lang.Long cpu;
  
 	@Column(name = "mem")
    public java.lang.Long mem;
  
 	@Column(name = "description")
    public java.lang.String description;
  
 	@Column(name = "idc_id")
    public java.lang.Long idcId = 0l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "op_time")
    public java.util.Date opTime;
  





	public java.lang.Long getHostId() {
		return this.hostId;
	}
	
	public void setHostId(java.lang.Long value) {
		this.hostId = value;
	}

	public java.lang.String getHostName() {
		return this.hostName;
	}
	
	public void setHostName(java.lang.String value) {
		this.hostName = value;
	}

	public java.lang.String getIntIp() {
		return this.intIp;
	}
	
	public void setIntIp(java.lang.String value) {
		this.intIp = value;
	}

	public java.lang.String getExtIp() {
		return this.extIp;
	}
	
	public void setExtIp(java.lang.String value) {
		this.extIp = value;
	}

	public java.lang.Long getCpu() {
		return this.cpu;
	}
	
	public void setCpu(java.lang.Long value) {
		this.cpu = value;
	}

	public java.lang.Long getMem() {
		return this.mem;
	}
	
	public void setMem(java.lang.Long value) {
		this.mem = value;
	}

	public java.lang.String getDescription() {
		return this.description;
	}
	
	public void setDescription(java.lang.String value) {
		this.description = value;
	}

	public java.lang.Long getIdcId() {
		return this.idcId;
	}
	
	public void setIdcId(java.lang.Long value) {
		this.idcId = value;
	}

	public java.util.Date getOpTime() {
		return this.opTime;
	}
	
	public void setOpTime(java.util.Date value) {
		this.opTime = value;
	}


	
	public SysHost() {
	}
	
	public SysHost(boolean qryflag) {
	    if(qryflag){
	    		this.hostId = null;
				this.hostName = null;
				this.intIp = null;
				this.extIp = null;
				this.cpu = null;
				this.mem = null;
				this.description = null;
				this.idcId = null;
				this.opTime = null;
			    }
	}


	public SysHost(
	    java.lang.Long inHostId,
	    java.lang.String inHostName,
	    java.lang.String inIntIp,
	    java.lang.String inExtIp,
	    java.lang.Long inCpu,
	    java.lang.Long inMem,
	    java.lang.String inDescription,
	    java.lang.Long inIdcId,
		java.util.Date inOpTime
	 ) {
		super();
				this.hostId = inHostId;
				this.hostName = inHostName;
				this.intIp = inIntIp;
				this.extIp = inExtIp;
				this.cpu = inCpu;
				this.mem = inMem;
				this.description = inDescription;
				this.idcId = inIdcId;
				this.opTime = inOpTime;
			}





}

